home *** CD-ROM | disk | FTP | other *** search
/ LOGIC Apps / Logic-APPLE_II_APPS.iso / mac / LOGIC Apple II 5.25" Library - ProDOS / PRO067.dsk / ULTRA.OMELETTE.txt < prev   
Text File  |  2012-02-16  |  15KB  |  280 lines

  1.  
  2.  
  3. These are the default macros that are included in ULTRA.SYSTEM until the "Macro Options" application is used to save a new macro table as the default set. This macro set is 1620 bytes long, less than half of the possible size.
  4.  
  5. start
  6.  
  7. <ba-]>:<all : rtn : rtn : ba-[>! get to Main Menu if auto-startup active
  8. <ba-[>:<all><msg ' Default macros installed. '>! This message is displayed if auto-startup is used, or if these macros are used as a Task file
  9.  
  10. --------------------------------------------------------------------------
  11.  
  12. Cursor-positioning macros
  13.  
  14. <Left>:<awp><oa-tab><oa-tab><oa-tab><oa-tab><oa-tab><oa-tab><oa-tab>
  15. <oa-tab><oa-tab><oa-tab><oa-tab><oa-tab><oa-tab><oa-tab><oa-tab><oa-tab>
  16. <oa-tab><oa-tab><oa-tab><oa-tab>! go to beginning of Awp line; assumes that a maximum of 20 tabs are set in the file. Add more oa-tabs if necessary
  17.  
  18. <Right>:<awp sa-left : down : left>! go to end of awp line
  19.  
  20. <left>:<asp posn y,z : if y > 1 then left rpt>! go to first column
  21. <right>:<asp : x = peek $85fe : begin : posn y,z : if y < x then right rpt else if y > x then left rpt>! goto to rightmost column holding data
  22.  
  23. <Left>:<adb><left><back><x= peek $10f5 : if x = 160 then right>!  jump left a word in a category
  24. <Right>:<adb><ahead><right>!  jump right a word in a category
  25.  
  26. --------------------------------------------------------------------------
  27.  
  28. A:<all><oa-Q esc rtn rtn>!   add files to Desktop from anywhere in AW
  29.  
  30.  
  31. C:<awp><oa-O>CN<rtn><esc>!             center text
  32.  
  33. D:<awp><right><oa-left><oa-M>T<oa-right><left><Rtn>! delete word under cursor
  34.  
  35. F:<awp><oa-F>T<oa-Y>!                  find text, clear previous word
  36.  
  37. F:<adb><oa-F><oa-Y>!                   find text, clear previous word
  38.  
  39. G:<awp><oa-F>M254<rtn>!                go to marker 254 (set with sa-M)
  40.  
  41. H:<asp><oa-F>C<oa-Y>A1<rtn>!           go home to top left of the spreadsheet
  42.  
  43.  
  44. J:<awp><rtn>JEM SOFTWARE<rtn>P.O. Box 20920<rtn>El Cajon, CA  92021!
  45.  
  46. K:<awp><oa-K><rtn><oa-F>P!             calculate page breaks; find a page
  47.  
  48. L:<awp><oa-Q esc rtn>3<rtn rtn>LETTERHEAD<rtn oa-O>tm<rtn>.5<rtn>bm<rtn>.5<rtn>lm<rtn>.5<rtn>rm<rtn>.2<rtn>CI<rtn>5<rtn esc rtn ctrl-B>Dawn & Stan Hecker<ctrl-B rtn oa-O>CI<rtn>10<rtn>lm<rtn>.4<rtn esc ctrl-L>1331 Cedarhill, East Lansing, MI  48823               (517) 332-3830<ctrl-L rtn rtn rtn oa-O>LM<rtn>.5<rtn>RM<rtn>.5<rtn esc rtn rtn date : rtn rtn rtn rtn oa-N sa-del : sa-del : sa-del : sa-del : sa-del : sa-del : sa-del : sa-del : sa-del : sa-del>!
  49.  
  50. L:<asp><oa-L>EL!                       change entry's label layout
  51.  
  52. M:<awp><oa-O>SM<rtn>254<rtn><esc>!     set marker 254 (find with sa-G)
  53.  
  54. N:<asp><oa-A><oa-9><rtn>3<rtn>!        numerical spreadsheet column sort
  55.  
  56. N:<awp>Heather Brandt!                 name of a little "Lassie" lover
  57.  
  58.  
  59. P:<awp><oa-P><rtn><rtn><rtn>!          print wp file
  60.  
  61. P:<asp><oa-P>A<rtn><oa-Y><date><rtn><rtn>!   print ss file with today's date
  62.  
  63. P:<adb><oa-P>1<Rtn>1<Rtn><oa-P><Rtn><oa-Y><date><Rtn><rtn>! print data base report #1 with today's date
  64.  
  65. Q:<all><oa-Q><down><rtn>!              switch to next file on desktop
  66.  
  67. R:<awp><oa-F>O<input><rtn><rtn><sa-Del><oa-O><input><rtn><esc>!
  68.                                        replace printer option 
  69. S:<all><oa-S><esc>4<rtn><rtn>!         save and remove a file
  70.  
  71. U:<all><oa-C>F!                        undo last MacroWorks delete
  72.  
  73.  
  74. These delete macros move the data to the clipboard so sa-U can undo them:
  75.  
  76. Y:<all><sa-left oa-M>T<down left rtn>!       delete a line
  77.  
  78. <Ctrl-Y>:<awp><left><oa-M>T<sa-left><rtn>!   delete left of cursor
  79.  
  80. Z:<all : oa-M>T<rem "move to the clipboard" :
  81.  oa-9 : rem "jump to the end and do it" : rtn :
  82.  left>!  zap (delete) to end of current file (max = clipboard limit)
  83.  
  84. 9:<awp : oa-9 : up : goto sa-y>!              delete the last line in a file
  85.  
  86. --------------------------------------------------------------------------
  87.  
  88. More macros
  89.  
  90. -:<awp><insert><oa-O>-B<rtn>-E<rtn><esc><left>! insert subscript codes
  91.  
  92. <ba-+>:<awp><insert><oa-O>+B<rtn>+E<rtn><esc><left>! insert superscript codes
  93.  
  94. <ba-+>:<asp><oa-L>C<rtn>C<oa-right><oa-right><oa-right><oa-right><oa-right>
  95. <oa-right><oa-right><oa-right>! expand a spreadsheet column
  96. -:<asp><oa-L>C<rtn>C<oa-left><oa-left><oa-left><oa-left><oa-left><oa-left>
  97. <oa-left><oa-left>!                             shrink a spreadsheet column
  98.  
  99. /:<awp><oa-O>NP<rtn><esc>!                      force a page break
  100.  
  101. /:<asp><Up><oa-C><Rtn><Rtn><down><Rtn><down>!   copy label or value
  102.  
  103. <spc>:<all C = peek $10F1 { check cursor type- 0 means insert, 1 means strikeover } insert { force insert on } spc left { enter a space } if C = 1 then oa-e : { restore strikeover if necessary } ctrl-x>!  insert a space, even if strikeover cursor
  104.  
  105. --------------------------------------------------------------------------
  106.  
  107. Control-Character Macros
  108.  
  109. <Ctrl-A>:<asp><oa-A><oa-9><rtn><rtn>!   alphabetical spreadsheet column sort
  110.  
  111. <Ctrl-A>:<all>AppleWorks!
  112.  
  113. <Ctrl-B>:<awp><right><oa-left><Ctrl-B><ahead><Ctrl-B>! boldface word
  114.  
  115. <Ctrl-C>:<awp>Sincerely,<rtn><rtn><rtn><rtn><sa-n><rtn>!  close a letter
  116.  
  117. <Ctrl-D>:<awp><find><oa-D><oa-right><rtn> !  make a paragraph
  118.  
  119. <ctrl-e>:<all oa-q esc>5<rtn $0 = "PathFinder" : ifnot $0 = screen 16,16,10 then msg ' Requires "PathFinder" from JEM SOFTWARE ' : stop bell else :
  120. rtn : msg ' Choose a drive ' : input : rtn>5<rtn><rtn>
  121. <msg ' Choose subdirectory ' : input  rtn  oa-q  esc>! enhanced path selector (requires PathFinder)
  122.  
  123. <Ctrl-F>:<awp><oa-F>ONP<rtn>!           find next forced page break (NP)
  124.  
  125. <Tab>:<awp><oa-T>s<esc>!  set tab at cursor position   (tab is ctrl-I)
  126.  
  127. <Ctrl-L>:<all><oa-Q><Esc>5<Rtn>2<Rtn>!  list all files on the current drive
  128.  
  129. <Ctrl-N>:<awp><oa-Q><Esc><Rtn>3<rtn><rtn>!  create new AWP file
  130.  
  131. <Ctrl-O>:<awp><left><findpo><oa-D><rtn>!      delete next ^
  132.  
  133. <clear>:<all : msg "">!  clear the message line (same as ctrl-x)
  134.  
  135. --------------------------------------------------------------------------
  136.  
  137. This macro is designed to help you keep track of long distance telephone calls. It reads the name at the current data base category, and moves to the next category for the phone number. Then it finds the Data Base file "Phone Calls" on the Desktop and enters the name, number, date, and current time.
  138.  
  139. Ctrl-Q shows how to use the changed <find> command (see the Notes file) to continue after an unsuccessful <find>.
  140.  
  141. <ctrl-Q>:<adb sa-ctrl-p : msg ' Unable to find ' + $0 + ' '>!
  142.  
  143. <Ctrl-P>:<adb :      { macro name and application- Data Base only }
  144. zoom : oa-Z :        { force single record layout }
  145. cell :               { read the current category into macro 0 }
  146. $8 = $0 :            { save the name in string 8 }
  147. rtn :                { move to the next category }
  148. cell :               { read the current category into macro 0 }
  149. $9 = $0 :            { save the phone number in string 9 }
  150. oa-Q :               { call up the Desktop Index }
  151. $0 = "Phone Calls" : { set macro 0 to the next Data Base name }
  152. find : rtn :         { find "Phone Calls" and switch to it }
  153. zoom : oa-Z :        { force single record layout }
  154. oa-9 :               { jump to the end of the file }
  155. oa-Down              { jump down to add a new record }
  156. >y<                  { answer "yes" to add new records }
  157. date : rtn :         { enter the date; go to next category }
  158. print $8 : rtn :     { enter the name; go to next category }
  159. print $9 : rtn :     { enter the number; go to next category }
  160. time : rtn : stop>!  { enter the time; go to next category, and stop }
  161.  
  162. --------------------------------------------------------------------------
  163.  
  164. One macro to number a range of spreadsheet cells sequentially from 1;
  165. handles horizontal or vertical numbering
  166.  
  167. f:<asp :   msg ' Go to first cell and press Return ' :
  168.  input : posn w,x :            { get start cell }
  169.  $1 = " " + screen 1,22,5  :   { read coordinates from screen }
  170.  $3 = " First cell:" + $1 + ' Go to last cell and press Return ' :
  171.  msg $3 : input : posn y,z :   { get last cell }
  172.  $2 = screen 1,22,5  : u = 0 : 
  173.  
  174.  if w = y then u = 1 else     { same row, so fill the column }
  175.  if x = z then u = 2 elseoff  { same column, so fill the row }
  176.  if u = 0 then $3 = $1 + " and " + $2 + " are in different rows and columns "
  177.  :  msg $3 : bell : stop else  { need same row or same column or die }
  178.  
  179.  if u = 2 then v = y - w + 1 : else v = z - x + 1 : { calc highest number }
  180.  elseoff begin { cancel conditional status; begin repeatable section }
  181.  print v : v = v - 1 : if v = 0 then rtn : msg "" : stop { we're done }
  182.  elseoff if u = 2 then left rpt else up rpt>! move up or left and repeat
  183.  
  184. --------------------------------------------------------------------------
  185.  
  186. <ctrl-\>:<all><oa-Q><esc>6<rtn>y3<rtn>y< goto sa-ctrl-\ >! exit, ignoring all changes. Be careful with this one!
  187.  
  188. 1:<all><q = peek $C54 : oa-q esc>!   leave "1" file; go to main menu
  189. 2:<all  : oa-q print q : rtn>!       return "2" the file we left
  190.  
  191. 3:<all><rtn date spc date2 rtn time spc time24 rtn>! show date/time formats
  192. 4:<all : print "this is text <oa-1> and so is this">! printing tokens as text
  193.  
  194. Save all Desktop files to the current disk with this macro:
  195.  
  196. <ba-ctrl-s>:<all : y = peek $c54 : goto ba-ctrl-t>!  get current file number
  197. <ba-ctrl-t>:<all : oa-q : down : rtn : oa-s : { save current file } : x = peek $c54 : { check current file number } if x = y then stop else rpt>!  stop when we're back to the file we started from
  198.  
  199. Use these BOTH-APPLE macros to enter common tokens while writing your own macros: 
  200.  
  201. --- Reserved macro tokens ---
  202.  
  203. <ba-'>:<awp>date !
  204. <ba-">:<awp>date2 !
  205. <ba-=>:<awp>time !
  206.  
  207. <ba-,>:<awp>back !
  208. <ba-.>:<awp>ahead !
  209. <ba-del>:<awp>del !
  210. <ba-ctrl-f>:<awp>find !
  211.  
  212. --- Control code tokens ---
  213.  
  214. <ba-tab>:<awp>tab !
  215. <ba-esc>:<awp>esc !
  216. <ba-rtn>:<awp>rtn !
  217.  
  218. <ba-left>:<awp>left !
  219. <ba-right>:<awp>right !
  220. <ba-down>:<awp>down !
  221. <ba-up>:<awp>up !
  222.  
  223. <ba-spc>:<awp>spc !
  224.  
  225. --- Open apple command tokens ---
  226.  
  227. <ba-ctrl-x>:<awp>clear !
  228.  
  229. <ba-:>:<awp>uc !
  230. <ba-;>:<awp>lc !
  231.  
  232. <ba-!>:<awp>insert !
  233. <ba-@>:<awp>zoom !
  234.  
  235. <ba-^>:<awp>read !
  236. <ba-<>:<awp>store !
  237. <ba->>:<awp>recall !
  238.  
  239. <ba-ctrl-g>:<all>bell !
  240.  
  241. The following macro automatically compiles the current AWP file.
  242.  
  243. <ba-c>:<awp $0 = "Macro Compiler" : oa-esc find rtn rtn>NB! compile current file; add a <rtn> token after "NB" to automatically execute the first macro in the new set; the N and B at the end select the "No pause" and compile from "Beginning" options in the "Macro Compiler" TimeOut application
  244.  
  245.  
  246. ------------------------------------------------------------------
  247.  
  248. OMELETTE MACROS
  249.  
  250. To add to original MACROS ULTRA, drop the B, I, and O macros for the word processor in that file.  Add these macros to the list.
  251.  
  252.  
  253. <ba-s>:<awp oa-o>+b<rtn esc>***<oa-o>+e<rtn esc>! -- SETS 3 SUPERSCRIPTED ASTERISKS TO MARK LOCATION.  CALLED BY CLOSED-APPLE-B; USES NO OTHER MACROS.
  254.  
  255. b:<awp><ba-s up up tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab rtn down oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-o>gb<rtn esc down sa-right input rtn oa-o>sm<rtn>1<rtn>ss<rtn esc rtn tab ba-s>! -- STARTS A NOTE SEQUENCE; INITIATES A GROUP, CALLS BOTHA-APPLE-S, LETS THE LINE BE FINISHED FROM THE KEYBOARD, SETS SINGLE SPACING, INDENTS TO THE FIRST TAB, AND FINALLY CALLS BOTH-APPLE-S AGAIN.  USES THE MACROS ULTRA SOLID-APPLE-> MACRO, ALSO.
  256.  
  257. e:<awp><rtn down oa-o>sm<rtn>2<rtn>ge<rtn esc down oa-o>ds<rtn esc>! -- ENDS A NOT SEQUENCE BY ENDING A GROUP AND RESETTING TO DOUBLE-SPACING.
  258.                                                
  259. i:<awp><oa-o>ub<rtn esc>Ibid<oa-o>ue<rtn esc>.!  RETURNS UNDERLINED "Ibid".
  260.  
  261. o:<awp><oa-o>ub<rtn esc>op<oa-o>ue<rtn esc>.<spc oa-o>ub<rtn esc>cit<oa-o>ue<rtn esc>.,!  RETURNS UNDERLINED "op. cit.,".
  262.  
  263. <ba-e>:<awp><onerr stop insert zoom oa-s X=0 oa-9 oa-o>gb<rtn esc rtn oa-o>sm<rtn>1<rtn esc up spc spc oa-q esc rtn>3<rtn rtn>zzz.newdoc<rtn rtn rtn rtn oa-o>sm<rtn>99<rtn>np<rtn>cn<rtn esc>NOTES<rtn oa-o>uj<rtn esc oa-1 oa-q>1<rtn begin oa-1 oa-f>ogb<rtn>n<oa-d rtn oa-f>m1<rtn>n<oa-d rtn up sa-right oa-m>t<oa-1 rtn oa-q>2<rtn oa-f>m99<rtn>n<oa-m>f<oa-f>t***<rtn>n<right right right del del del X = X + 1 print X : down oa-q>1<rtn oa-1 oa-f>t***<rtn>n<right right right del del del print X : oa-1 oa-f>m2<rtn>n<down down down oa-d rtn del del oa-d rtn up oa-d rtn up del oa-m>t<oa-1 rtn oa-q>2<rtn oa-9 oa-m>f<del del oa-1 oa-q>1<rtn rpt>! -- PLACES ALL NOTES AT THE END OF THE DOCUMENT.  USES THE SOLID-APPLE-RIGHT MACRO FROM MACROS-ULTRA.  THE NEWLY-CREATED DOCUMENT IS ZZZ.NEWDOC.
  264.  
  265. <ba-f>:<awp><onerr stop zoom insert oa-1 oa-s clear goto ba-?>! -- PRELIMINARY WORK FOR FORMAL, BOTTOM-OF-PAGE FOOTNOTES.  SAVES THE ORIGINAL FILE, SETS THE VARIABLES TO ZERO, AND TRANSFERS CONTROL TO BOTH-APPLE-?.
  266.  
  267. <ba-i>:<awp><onerr stop zoom insert oa-1 oa-s clear begin X = X + 1 oa-f>m1<rtn>n<oa-d rtn up up tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab rtn {ESC WAS HERE} oa-o>ss<rtn esc down oa-d rtn rtn up ba-ctrl-z up up up up oa-f>o+e<rtn>n<del del del print X : right oa-f>o+e<rtn>n<del del del print X : oa-f>m2<rtn>n<oa-d rtn up ba-ctrl-z up oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab oa-tab rpt>! -- "IMBEDS" THE FOOTNOTES IN THE FINAL TEXT, DRAWING A LINE ABOVE AND BELOW EACH NOTE.
  268.  
  269. <ba-?>:<awp><onerr stop A = A + 1 oa-k >1<rtn oa-f>p<print A : {FINDS BOTTOM OF CURRENT PAGE} rtn rtn up posn E,F {STORES THE # OF THE LAST LINE ON THE CURRENT PAGE AS F} down rtn rtn up oa-o>ss<rtn>ub<rtn esc spc spc spc spc spc spc spc spc spc spc spc spc spc spc spc oa-o>ue<rtn esc {SETS SINGLE SPACING AND A SHORT LINE TO APPEAR ABOVE THE FOOTNOTES} rtn rtn down oa-o>ds<rtn>sm<rtn>220<rtn esc goto ba-ctrl-.>! -- AND RETURNS TO DOUBLE-SPACING AND SETS THE BOTTOM-OF-PAGE MARKER, WHICH IS 220.  TRANSFERS CONTROL TO BOTH-APPLE-CONTROL-F.
  270.  
  271. <ba-ctrl-.>:<awp><onerr stop oa-1 oa-f>m1<rtn rtn down {FINDS TOP OF FIRST UNPROCESSED NOTE} posn E,Q if Q > F oa-1 oa-f>m220<rtn rtn oa-d rtn oa-o>np<rtn esc goto ba-? {IF PAST END OF PAGE, MAKE MARKER 220 INTO A NEW-PAGE COMMAND AND TRANFER CONTROL TO BOTH-APPLE-?} else oa-1 oa-f>m2<rtn rtn up up posn E,R {OTHERWISE, STORES LINE # OF THE END OF THE CURRENT NOTE AS "R"} X = X + 1 oa-q rtn oa-1 oa-f>t***<rtn>n<right right right del del del print X : oa-q rtn oa-1 oa-f>t***<rtn>n<right right right del del del print X : goto ba-ctrl-?>! -- {AND PLACES A PAIR OF SEQUENTIAL NOTE NUMBERS IN PLACE OF *** MARKERS, THEN TRANSFERS CONTROL TO BOTH-APPLE-CONTROL-?.
  272.  
  273. <ba-ctrl-?>:<awp><onerr stop L = R - Q oa-f>m1<rtn rtn down down Z = 0  oa-m>t<begin Z= Z + 1 down if Z < L rpt {USES A LOOP TO MARK NOTE TEXT TO BE MOVED TO THE BOTTOM OF THE PAGE VIA CLIPBOARD} else rtn oa-1 oa-f>m220<rtn rtn up up oa-m>f<del goto ba-ctrl-9>!-- TRANSFERS NOTE TO CLIPBOARD, THEN FROM CLIPBOARD TO BOTTOM OF PAGE, AND THEN TRANSFERS CONTROL TO BOTH-APPLE-CONTROL-9.
  274.  
  275. <ba-ctrl-9>:<awp><onerr stop oa-1 oa-f>m1<rtn rtn up up up oa-d rtn down down oa-d down down down down down rtn {ELIMINATES THE "BED" AT THE NOTE'S EMBEDDED LOCATION} oa-f>m220<rtn rtn posn E,F {STORES THE NEW LINE # OF THE END-OF-PAGE MARKER--AFTER THE VARIOUS MOVES-- AS VARIABLE F} goto ba-ctrl-.>! -- AND RETURNS CONTROL TO BOTH-APPLE-CONTROL-. (period).
  276.  
  277.  
  278.  
  279. <ba-ctrl-z>:<awp><oa-o>ub<rtn esc tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab tab left left oa-o>ue<rtn esc>!  LINE-DRAWING SUBROUTINE USED BY BOTH-APPLE-I.
  280.